package com.module.oa.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.module.oa.mapper.MzActivitiMainInfoMapper;
import com.module.oa.domain.MzActivitiMainInfo;
import com.module.oa.service.IMzActivitiMainInfoService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author hezhengxian
 * @date 2023-07-26
 */
@Service
public class MzActivitiMainInfoServiceImpl implements IMzActivitiMainInfoService 
{
    @Autowired
    private MzActivitiMainInfoMapper mzActivitiMainInfoMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public MzActivitiMainInfo selectMzActivitiMainInfoById(String id)
    {
        return mzActivitiMainInfoMapper.selectMzActivitiMainInfoById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param mzActivitiMainInfo 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<MzActivitiMainInfo> selectMzActivitiMainInfoList(MzActivitiMainInfo mzActivitiMainInfo)
    {
        return mzActivitiMainInfoMapper.selectMzActivitiMainInfoList(mzActivitiMainInfo);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param mzActivitiMainInfo 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertMzActivitiMainInfo(MzActivitiMainInfo mzActivitiMainInfo)
    {
        return mzActivitiMainInfoMapper.insertMzActivitiMainInfo(mzActivitiMainInfo);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param mzActivitiMainInfo 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateMzActivitiMainInfo(MzActivitiMainInfo mzActivitiMainInfo)
    {
        return mzActivitiMainInfoMapper.updateMzActivitiMainInfo(mzActivitiMainInfo);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteMzActivitiMainInfoByIds(String[] ids)
    {
        return mzActivitiMainInfoMapper.deleteMzActivitiMainInfoByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteMzActivitiMainInfoById(String id)
    {
        return mzActivitiMainInfoMapper.deleteMzActivitiMainInfoById(id);
    }

    /**
     * 根据主流程id查询子节点
     * @param activitiId
     * @return
     */
    public List<MzActivitiMainInfo> selectMzActivitiMainInfoByActivitiId(String activitiId){
        return mzActivitiMainInfoMapper.selectMzActivitiMainInfoByActivitiId(activitiId);
    }

}
